package com.city.controller.house;

import com.city.service.house.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @deprecation 居民与房屋管理
 * @email leichuqiao@126.com
 * @author 雷楚桥
 * @date 2018-07-06 21:04
 */
@Controller
@RequestMapping("/house")
public class HouseController {

    @Autowired
    private HouseService houseService;


    /**
     * @deprecation 居民与房屋管理-主页
     * @author 雷楚桥
     * @date 2018-07-06 21:07
     */
    @RequestMapping("/index")
    public String index() {
        return "/house/index";
    }

    /**
     * @deprecation 居民与房屋信息管理
     * @author 雷楚桥
     * @date 2018-07-06 21:05
     *
     * @modify: 李顺时
     * @Date: 16:45 2018/7/22
     * @describe: 将manager改为出租房的管理
     *
     */
    @RequestMapping("/manager")
    public String manager() {
        return "/house/manager";
    }

    /**
     * @Author: 李顺时
     * @Description: 出租房的管理
     * @Date: 14:56 2018/8/20
     */
    @RequestMapping("/cityhousemanager")
    public String cityhousemanager() {
        return "/house/cityhousemanager";
    }


    /*
     * @Author: 李顺时
     * @Description:房屋详情
     * @Date: 12:43 2018/7/14
     */
    @RequestMapping("/details")
    public String details() {
        return "/house/details";
    }


    /*
     * @Author: 李顺时
     * @Description: 修改房屋信息
     * @Date: 12:45 2018/7/14
     */
    @RequestMapping("/update")
    public String update() {
        return "/house/update";
    }

    @ResponseBody
    @RequestMapping("/houseInfo")
    public String houseGet() {
        return houseService.houseGet();
    }



    /*
     * @Author: 李顺时
     * @Description:以房找人
     * @Date: 15:17 2018/7/16
     */

    @RequestMapping("/lookPeople")
    public String lookPeople() {
        return "/house/lookPeople";
    }

    /**
     * @Author: 方俊杰
     * @Description:出租房录入
     * @Date: 13:34 2018/7/17
     */
    @RequestMapping("/rentHouse")
    public String rentHouse() {
        return "/house/rentHouse2";
    }

    /**
     * @Author: 方俊杰
     * @Description:实有房屋统计
     * @Date: 15:13 2018/7/18
     */
    @RequestMapping("/houseCount")
    public String houseCount() {
        return "/house/houseCount";
    }

    @RequestMapping("/houseCountDetail")
    public String houseCountDetail() {
        return "/house/houseCountDetail";
    }


    /*
     * @Author: 李顺时
     * @Description: 居民的详细信息
     * @Date: 8:38 2018/7/18
     */
    @RequestMapping("/inhabitantDetails")
    public String personDetails() {
        return "/house/inhabitantDetails";
    }


    /**
     * @Author: 李顺时
     * @Description:  家庭成员详细
     * @Date: 17:39 2018/8/31
     */
    @RequestMapping("/menberDetails")
    public String menberDetails() {
        return "/house/menberDetails";
    }


    /*
     * @Author: 李顺时
     * @Description: 点击查看房屋的时候 弹出层的地址
     * @Date: 16:34 2018/7/18
     */
    @RequestMapping("/observeHouse")
    public String observeHouse() {
        return "/house/observeHouse";
    }


    /*
     * @Author: 李顺时
     * @Description: 实有房录入
     * @Date: 20:32 2018/7/19
     */

    @RequestMapping("/RealHouseAdd")


    public String RealHouseAdd() { return "/house/RealHouseAdd";}

    /*
     * @Author: 方俊杰
     * @Description: 出租房屋统计
     * @Date: 19:00 2018/7/19
     */
    @RequestMapping("/rentHouseCount")
    public String rentHouseCount() {
        return "/house/rentHouseCount";
    }

    /*
     * @Author: 李顺时
     * @Description: 房屋审核
     * @Date: 15:42 2018/7/21
     */
    @RequestMapping("/HouseApproval")

    public String HouseApproval() {
        return "house/HouseApproval";
    }


    /*
     * @Author: 李顺时
     * @Description: 房屋审核详细
     * @Date: 16:07 2018/7/22
     */
    @RequestMapping("/ProprietorDetails")
    public String ProprietorDetails(){ return "house/ProprietorDetails";}
    
    

    /*
     * @Author: 李顺时
     * @Description:  居民房屋管理
     * @Date: 16:45 2018/7/22
     */
    @RequestMapping("/peopleDetailManager")
    public String peopleDetailManager(){ return "house/peopleDetailManager";}


    /*
     * @Author: 李顺时
     * @Description: 居民房屋管理 修改
     * @Date: 17:33 2018/7/22
     */
    @RequestMapping("/updatePeopleDetail")
    public String updatePeopleDetail(){ return "house/updatePeopleDetail" ;}

    /*
     * @Author: 李顺时
     * @Description: 房屋测试页面
     * @Date: 14:02 2018/8/2
     */
    @RequestMapping("/housetest")
    public String housetest(){ return "house/housetest"; }





}

